package com.dingding.special.common.exception.base;

/**
 * @Description:
 * @author fengshuonan
 * @date 2016年8月29日 下午1:47:07
 * @version 叮叮搭车
 * @since 2.4
 */
@SuppressWarnings("serial")
public class BaseException extends RuntimeException{

	protected int code; 			// 错误码

	protected String errorMessage; 	// 错误信息
	
	public BaseException() {
		super();
	}
	
	public BaseException(String message) {
		super(message);
	}

	public BaseException(int code, String errorMessage) {
		super(errorMessage);
		this.code = code;
		this.errorMessage = errorMessage;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

}
